home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re Hilite color < prev    next >
Encoding:
Internet Message Format  |  1996-08-22  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Hilite color
  2. Sent:        8/22/96 11:23 AM
  3. Received:    8/22/96 11:31 AM
  4. From:        Brad Pettit, bpettit@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. You probably know the background color over which you are drawing. If 
  9. that's the case, just specifying FW_kHilite should work. When Quickdraw 
  10. applies the hilite color, it looks to see if the area will be hiliting 
  11. with the same color (making the selection invisible, very common with 
  12. some grays), and switches the colors so that the other color is used 
  13. instead.
  14.  
  15. -----------------------------------------------------------------------
  16.  Brad Pettit                                          bpettit@apple.com
  17.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  18.  
  19. >
  20. >>By the selection color I assume you mean the highlight color. In ODF 1 If 
  21. >>you use the FW_kHilite transfer mode with your ink and black for the 
  22. >>foreground color you will get the system highlight color. We changed that 
  23. >>in ODF 2: FW_kHilite always uses the ink foreground color, 
  24. >>FW_kSystemHilite ignores the ink foreground color and uses instead the 
  25. >>system hightlight color.
  26. >>
  27. >>........................................................................
  28. >> Henri Lamiraux                                      lamiraux@apple.com
  29. >> Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  30. >>........................................................................
  31. >
  32. >
  33. >OK, this seems to be a way to get an object to draw in the highlight 
  34. >color, but for highlighting text I want to be smart about the highlight 
  35. >and I wnat to get the correct highlight background color, and the 
  36. >corresponding foreground color. For example, if the user has Green as the 
  37. >highlight color, that corresponds to green background with black text. If 
  38. >they have black as the highlight color that corresponds to black 
  39. >background with white text.
  40. >
  41. >Is there a way to get both the background and foreground colors correctly 
  42. >for my highlighted text object?
  43. >
  44. >-Scott Adler
  45.